/**
 * 需要jquery-history.js
 *
**/
;(function () {
	//装载历史记录队列
	window.loadHistoryScriptQueue = function (fileNames) {
		var size = fileNames.length;
		for(var i=0;i<size;++i)
		{
			$.ajax({
				  url: HISTORY_FILE_FOLDER + "/" + fileNames[i],
				  dataType: "script",
				  cache: true,
				  async: false
				});
		}
	};
	var historyScriptList = [];
	window.history.pushCallback = function (fun) {
		historyScriptList.push(fun);
	};
	$(function () {
		$.history.init(function (hash) {
			var size = historyScriptList.length;
			for(var i=0;i<size;++i)
				if(historyScriptList[i](hash) == false)
					break;
		});
	});
})();